Component({
    options: {
        styleIsolation: "shared"
    },
    properties: {
        screenShow: {
            type: Boolean,
            value: !1
        },
        cakeType: {
            type: Array,
            value: []
        },
        getBrand: {
            type: Array,
            value: []
        },
        priceSnacks: {
            type: Array,
            value: []
        },
        category: {
            type: Array,
            value: []
        },
        cakePriceArr: {
            type: Array,
            value: []
        }
    },
    lifetimes: {
        attached: function() {
            this.getiPnoneBottom();
        },
        moved: function() {},
        detached: function() {}
    },
    data: {
        indexType: -1,
        brandNum: 5,
        brandIndex: -1,
        snacksIndex: -1,
        categoryIndex: -1,
        cakeIndex: -1,
        brandValue: "",
        categoryValue: "",
        priceValue: [ "", "" ],
        cakeValue: "",
        cakePirceValue: [ "", "" ],
        iPnoneBottomBol: !1
    },
    methods: {
        replacementOn: function() {
            this.setData({
                indexType: -1,
                brandIndex: -1,
                snacksIndex: -1,
                categoryIndex: -1,
                cakeIndex: -1,
                brandValue: "",
                categoryValue: "",
                priceValue: [ "", "" ],
                cakeValue: "",
                cakePirceValue: [ "", "" ]
            }), this.triggerEvent("screenClick", {
                brandValue: "",
                categoryValue: "",
                priceValue: [ "", "" ],
                cakeValue: "",
                cakePirceValue: [ "", "" ]
            });
        },
        exhibitionOn: function() {
            this.setData({
                brandNum: this.data.getBrand.length
            });
        },
        packup: function() {
            this.setData({
                brandNum: 5
            });
        },
        onClose: function() {
            this.setData({
                screenShow: !1
            });
        },
        measureOn: function(e) {
            var a = e.currentTarget.dataset, t = a.index, n = a.type;
            this.setData({
                indexType: t,
                cakeValue: n
            });
        },
        classifyOn: function(e) {
            var a = e.currentTarget.dataset, t = a.index, n = a.id;
            this.setData({
                categoryIndex: t,
                categoryValue: n
            });
        },
        brandOn: function(e) {
            var a = e.currentTarget.dataset, t = a.index, n = a.id;
            this.setData({
                brandIndex: t,
                brandValue: n
            });
        },
        snacksOn: function(e) {
            var a = e.currentTarget.dataset, t = a.index, n = a.type;
            this.setData({
                snacksIndex: t,
                priceValue: n
            });
        },
        cakeClick: function(e) {
            var a = e.currentTarget.dataset, t = a.index, n = a.type;
            this.setData({
                cakeIndex: t,
                cakePirceValue: n
            });
        },
        screenOn: function() {
            this.triggerEvent("screenClick", {
                brandValue: this.data.brandValue,
                categoryValue: this.data.categoryValue,
                priceValue: this.data.priceValue,
                cakeValue: this.data.cakeValue,
                cakePirceValue: this.data.cakePirceValue
            });
        },
        getiPnoneBottom: function() {
            try {
                wx.getStorageSync("iPhoneBottom") && this.setData({
                    iPnoneBottomBol: !0
                });
            } catch (e) {}
        }
    }
});